//
//  ILBleObject+Addition.h
//  IMILabKit
//
//  Created by Roffa Zhou on 2022/5/23.
//

#import "ILBleObject.h"

NS_ASSUME_NONNULL_BEGIN

@interface ILBleObject (Addition)
/// 蓝牙登录，需要为ILLinkTypeBLE_2模式，内部会强制将linkType赋值为ILLinkTypeBLE_2
/// @param peripheral 需要登录的设备
/// @param block 返回登录结果
- (void)login:(ILBlePeripheral*)peripheral callback:(IL_Ble_Mode2_Result_Block)block;
/// 设备是否已连接WiFi
/// @param block 返回连接WiFi结果
/// @note 调用此方法前，必须保证设备已经登录，可通过上面的login方法执行登录，查询login中传入的外设WiFi状态
/// @author rf/2022-05-23
- (void)deviceConnectedWifiCallback:(IL_Ble_Mode2_Result_Block)block;
@end

NS_ASSUME_NONNULL_END
